package ooday04test;


public class Fish extends Animal implements Swim {
    //

    public Fish() {
    }

    public Fish(String name, int age, String color) {
        super(name, age, color);
    }
    //重写父类的抽象方法
    public void eat(){
        System.out.println(name+"鱼吃鱼食");
    }
    //
    public void swim(){
        System.out.println(name+"鱼游游游");
    }
}
